package com.illtamer.infinite.sillage.entity;

/**
 * 异常枚举类
 * */
public enum IrregularityEnum {

    DEFAULT(Exception.class, "未知错误");

    private final Class<? extends Exception> exception;

    private final String message;

    IrregularityEnum(Class<? extends Exception> exception, String message) {
        this.exception = exception;
        this.message = message;
    }

    public Class<? extends Exception> getException() {
        return exception;
    }

    public String getMessage() {
        return message;
    }
}
